From bb49bea2cd659e17a9f083b32f962d9af2042fc9 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 29 Nov 2000 05:11:01 +0000 Subject: [PATCH] (comment-indent): Save excursion around call to comment-indent-function. --- lisp/newcomment.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 3466b429301..610831bcff0 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -6,7 +6,7 @@ ;; Maintainer: Stefan Monnier ;; Keywords: comment uncomment ;; Version: $Name: $ -;; Revision: $Id: newcomment.el,v 1.24 2000/11/14 15:09:40 monnier Exp $ +;; Revision: $Id: newcomment.el,v 1.25 2000/11/21 21:31:16 monnier Exp $ ;; This file is part of GNU Emacs. @@ -436,7 +436,7 @@ If CONTINUE is non-nil, use the `comment-continuation' markers if any." (insert ender))) (goto-char begpos) ;; Compute desired indent. - (setq indent (funcall comment-indent-function)) + (setq indent (save-excursion (funcall comment-indent-function))) (if (not indent) ;; comment-indent-function refuses delegates to indent. (indent-according-to-mode) -- 2.30.2